# -*- coding: utf-8 -*-
class Person:

    def __init__(self,name,sex):
        self.__name=name
        self.__sex=sex
    @property
    def name(self):
        return self.__name
    @name.setter
    def name(self,str):
        self.__name=str

    @property
    def sex(self):
        return self.__sex

class Student(Person):

    def __init__(self,name,sex,cls):
        super().__init__(name,sex)
        self.__cls=cls
    @property
    def cls(self):
        return self.__cls
    @cls.setter
    def cls(self,cls):
        self.__cls=cls

    def info(self):
        print(super().name,super().sex,self.__cls)

s=Student("hw","man","2")

s.info()
print(s.cls)
print(s.name)